﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;

namespace WebApp.Code
{
    public enum FileType { File,Folder }
    public class FileManager
    {
        public FileManager()
        { }
        public FileManager(FileType fType, string name)
        {
            FileType = fType;
            FileInfo f=new FileInfo(name);
            Name = f.FullName.Replace(f.DirectoryName+"\\", "");
            Extension = f.Extension;
        }
        public FileType FileType { get; set; }

        public string Name { get; set; }

        public string Extension { get; set; }
    }


}